package com.mixsmart.spellsql.where;

import com.mixsmart.spellsql.IWhere;

/**
 * Where条件语句
 * @author lmq
 * @version 1.0
 * @since 1.0
 */
public class WhereContext extends CompositeWhere  {

    private IWhere exp;
	
	public WhereContext(IWhere exp) {
		this.exp = exp;
	}
	
	@SuppressWarnings("unchecked")
	@Override
	public String build() {
		String conditionStr = " where " + exp.build();
		super.addParameter(exp, null);
		return conditionStr;
	}
}
